package behavioral.chain;

/**
 * @author fay
 */
public class HandlerA extends AbstractHandler {

	@Override
	protected boolean isChain() {
		return true;
	}

	@Override
	public void action() {
		System.out.println(this.getType() + "A");
	}

	@Override
	public boolean isAction(Integer type) {
		this.setType(type);
		return type == 1;
	}
}
